package cn.hxzy.common;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Getter
public enum  SiteType {
    siteType_01(101, "服务站点"),
    siteType_02(102, "煤矿");

    private Integer siteType;
    private String siteTypeName;


    public static String getSiteTypeValue(int index) {
        for (SiteType value : SiteType.values()) {
            if (value.getSiteType() == index) {
                return value.getSiteTypeName();
            }
        }
        return null;
    }
}
